<template>
  <div class="AppMain">
    <router-view :key="key"/>
  </div>
</template>

<script>
import {computed} from "vue";
import { useRoute } from 'vue-router'
export default {
  name: "AppMain",
  setup(){
    const route=useRoute();
     const key=computed(()=>{
        return route.path;
     })
    return{
       key
    }
  }
}
</script>

<style scoped>

</style>